<?php

namespace app\admin\controller;

use app\common\util\Dir;
use app\admin\model\Article as ArticleModel;
/**
 * 后台默认首页控制器
 * @package app\admin\controller
 */

class Classify extends Admin
{

    //分类管理
    public function index(){
        $result = db('classify')
            ->order("id asc")
            ->paginate(10, false, ['query' => input('get.')]);

        $pages = $result->render();
        $this->assign('data_list', $result);
        $this->assign("pages", $pages);
        return $this->fetch();
    }


    
}
